.login-container {
  display: flex;
  height: 600px;

  .brand-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
      max-width: 100%;
      max-height: 100%;
    }
  }

  .ant-modal-close-x {
    display: none !important;
  }
  

  .login-section {
    flex: 1;
    padding: 40px;
    position: relative;

    .phone-login-btn {
      width: 120px;
      height: 30px;
      background: #f0f6ff;
      color: #2254f4;
      margin-left: 200px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      margin-bottom: 20px;
    }

    .login-method-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1;
    
    img {
      width: 40px;
      height: 40px;
      transition: transform 0.3s;
      
      &:hover {
        transform: scale(1.1);
      }
    }

      // 隐藏原有切换按钮（如果需要）
  .phone-login-btn {
    display: none;
  }
  }



    // 手机登录表单样式
    .phone-login-form {
      padding: 20px 0;

      .phone-header {
        h3 {
          text-align: center;
          margin-bottom: 8px;
          span {
            color: #3d69f5;
            font-size: 20px;
          }
        }
      }
    }

    .ant-input-password {
      margin-bottom: 20px;
    }

    .login-btn {
      width: 100%;
      height: 40px;
      background: #2254f4;
      color: white;
      border: none;
      border-radius: 4px;
      margin-bottom: 15px;
      cursor: pointer;
    }

    .extra-links {
      display: flex;
      justify-content: space-between;

      a {
        color: #2254f4;
        font-size: 12px;
        cursor: pointer;

        &:hover {
          opacity: 0.8;
        }
      }
    }
  }

  // 调整其他登录方式定位
  .other-login {
    position: absolute;
    bottom: 140px; // 根据表单高度调整
    width: calc(100% - 80px);
  }

  // 调整协议区域定位
  .agreement {
    position: absolute;
    bottom: 30px;
  }

  .wechat-login {
    text-align: center;

    .scan-header {
      margin-bottom: 20px;

      h3 {
        margin-bottom: 8px;
        span {
          color: #3d69f5;
          font-size: 20px;
        }
      }
    }
    .qrcode-placeholder {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .other-login {
    position: absolute;
    bottom: 100px;
    width: calc(100% - 80px);

    .other-login-string {
      display: flex;
      align-items: center;
      color: #999;

      &::before,
      &::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #eee;
      }

      p {
        margin: 0 10px;
      }
    }

    .login-icons {
      display: flex;
      justify-content: space-around;
      margin-top: 20px;
      
      .loginIcon {
        cursor: pointer;
        width: 80px;
        height: 80px;
        display: flex;
       
        align-items: center;
        color: #666;

        &:hover {
          color: #1890ff;
        }
      }
    }
  }

  .agreement {
    position: absolute;
    width: 100%;
    background: #f6f7f9;
    height: 60px;
    bottom: 30px;

    left: 0;
    color: #999;
    font-size: 12px;
    display: flex;
    justify-content: space-around;
    .text {
      flex: 1;
      border-right: 1px solid #ccc;
      text-align: center;
      padding-top: 10px;
      .links a {
        color: #6c717a;
        margin: 0 4px;
      }
    }
    .register-btn {
      width: 80px;
      height: 40px;
      line-height: 40px;
      margin-top: 10px;
      color: #1890ff;
      border: none;
      text-align: center;
      cursor: pointer;
      border-radius: 4px;
    }
  }
}
